import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import FoodView from '../views/FoodView.vue'
import FoodEditView from '../views/FoodEditView.vue'
import Love from '../views/Love.vue'
import Test from '../views/Test.vue'
import map from '../views/map.vue'
import FoodsList from "@/views/FoodsList";
import FoodsTypeList from "@/views/FoodsTypeList";
import FoodChat from "@/views/FoodChat";
import FoodPay from "@/views/FoodPay";
import Buy from '../views/Buy'
import SightView from '../views/SightView.vue'
import SightSearchView from "../views/SightSearchView";
import SightDetailView from "../views/SightDetailView";
import SightMapView from "../views/SightMapView";
import HotelView from "../views/HotelView";
import HotelDetailView from "../views/HotelDetailView";
import HotelOrderView from "../views/HotelOrderView";
import HotelSearchView from "../views/HotelSearchView";
import HotelChatView from "../views/HotelChatView";
import Ktv from '../views/Ktv.vue'
import Flower from '../views/Flower.vue'
import KtvDetail from '../views/KtvDetail.vue'
import FlowerDetail from '../views/FlowerDetail.vue'
import Photo from '../views/Photo.vue'
import PhotoDetail from '../views/PhotoDetail.vue'
import Portrait from '../views/Portrait.vue'
import PortraitDetail from '../views/PortraitDetail.vue'
import Play from '../views/Play'
import Movie from '../views/Movie'
import PlayDetail from '../views/PlayDetail'
import PlayList from '../views/PlayList'
import MovieDetail from '../views/MovieDetail'
import PlayPay from '../views/PlayPay'
import MoviePay from '../views/MoviePay'
import Bath from '../views/Bath.vue'
import BathDetail from '../views/BathDetail.vue'
import Attention from '../views/Attention.vue'
import Collection from "@/views/Collection";
import CommentWrite from "@/views/CommentWrite";
import FireStore from "@/views/FireStore";
import ChatZ from "@/views/ChatZ.vue";
import Payz from "@/views/Payz.vue";
import StoreMap from "@/views/StoreMap.vue";


import Video from '../views/Video'
import Myitem from '../views/Myitem'
import Search from '../views/search'

import Shopping from '../views/Shopping'
import ShoppingDetail from '../views/ShoppingDetail'

import Address from '../views/Adress'
import My from "@/views/My";
import Login from "@/views/Login";

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home,
    meta: {
      TabbarShow: true}  // 需要显示 底部导航
  },
  {
    path: '/address',
    name: 'address',
    component: Address,
    meta:{
      TabbarShow:false  //显示底部导航栏
    }
  },
  {
    path: '/my',
    name: 'my',
    component: My,
    meta:{
      TabbarShow:false  //显示底部导航栏
    }
  }, {
    path: '/login',
    name: 'login',
    component:Login,
    meta:{
      TabbarShow:false  //显示底部导航栏
    }
  },
  {
    path: '/shoppingdetali',
    name: 'shoppingdetali',
    component: ShoppingDetail,
    meta:{
      TabbarShow:false  //显示底部导航栏
    }
  },
  {
    path: '/buy',
    name: 'buy',
    component: Buy,
    meta:{
      TabbarShow:false  //显示底部导航栏
    }
  },
  {
    path: '/shopping',
    name: 'shopping',
    component: Shopping,
    meta:{
      TabbarShow:false  //显示底部导航栏
    }
  },
  {
    path: '/myitem',
    name: 'myitem',
    component: Myitem,
    meta:{
      TabbarShow:false  //显示底部导航栏
    }
  },
  {
    path: '/search',
    name: 'search',
    component: Search,
    meta:{
      TabbarShow:false  //显示底部导航栏
    }
  },

  {
    path: '/video',
    name: 'video',
    component: Video,
    meta:{
      TabbarShow:true  //显示底部导航栏
    }
  },
  {
    path: '/foodview',
    name: 'foodview',
    component: FoodView,
    meta: {
      TabbarShow: false}  // 需要显示 底部导航
  },
  {
    path: '/foodeditview',
    name: 'foodeditview',
    component: FoodEditView,
    meta: {
      TabbarShow: false}  // 需要显示 底部导航
  },
  {
    path: '/love',
    name: 'love',
    component: Love,
    meta: {
      TabbarShow: false}  // 需要显示 底部导航
  },
  {
    path: '/test',
    name: 'test',
    component: Test
  },
  {
    path: '/map',
    name: 'map',
    component: map,
    meta: {
      TabbarShow: false}  // 需要显示 底部导航
  },
  {
    path: '/foodsList',
    name: 'foodsList',
    component: FoodsList,
    meta: {
      TabbarShow: false}  // 需要显示 底部导航
  },
  {
    path: '/foodsTypeList',
    name: 'foodsTypeList',
    component: FoodsTypeList,
    meta: {
      TabbarShow: false}  // 需要显示 底部导航
  },
  {
    path: '/foodChat',
    name: 'foodChat',
    component: FoodChat,
    meta: {
      TabbarShow: false}  // 需要显示 底部导航
  },
  {
    path: '/foodPay',
    name: 'foodPay',
    component: FoodPay,
    meta: {
      TabbarShow: false}  // 需要显示 底部导航
  },
  {
    path: '/sight',
    name: 'sight',
    component: SightView
  },
  {
    path: '/sightsearch',
    name: 'sightsearch',
    component: SightSearchView
  },
  {
    path: '/sightmap',
    name: 'sightmap',
    component: SightMapView
  },
  {
    path: '/sightdetail',
    name: 'sightdetail',
    component: SightDetailView
  },
  {
    path: '/hotel',
    name: 'hotel',
    component: HotelView
  },
  {
    path: '/hoteldetail',
    name: 'hoteldetail',
    component: HotelDetailView
  },
  {
    path: '/hotelorder',
    name: 'hotelorder',
    component: HotelOrderView
  },
  {
    path: '/hotelsearch',
    name: 'hotelsearch',
    component: HotelSearchView
  },
  {
    path: '/hotelchat',
    name: 'hotelchat',
    component: HotelChatView
  },{
    path: '/ktv',
    name: 'ktv',
    component: Ktv,
    meta: {
      TabbarShow: false  // 需要显示 底部导航
    }
  },
  {
    path: '/flower',
    name: 'flower',
    component: Flower
  },{
    path: '/ktvdetail',
    name: 'ktvdetail',
    component: KtvDetail,
  },
  {
    path: '/flowerdetail',
    name: 'flowerdetail',
    component: FlowerDetail,
  },
  {
    path: '/photo',
    name: 'photo',
    component: Photo
  },
  {
    path: '/detail',
    name: 'detail',
    component: PhotoDetail
  },
  {
    path: '/portrait',
    name: 'portrait',
    component: Portrait
  },
  {
    path: '/portraitDetail',
    name: 'portraitDetail',
    component: PortraitDetail
  },
  {
    path: '/play',
    name: 'play',
    component: Play
  },
  {
    path: '/movie',
    name: 'movie',
    component: Movie
  },
  {
    path: '/playdetail',
    name: 'playdetail',
    component: PlayDetail
  },
  {
    path: '/playlist',
    name: 'playlist',
    component: PlayList
  },
  {
    path: '/moviedetail',
    name: 'moviedetail',
    component: MovieDetail
  },
  {
    path: '/playpay',
    name: 'playpay',
    component: PlayPay
  },
  {
    path: '/moviepay',
    name: 'moviepay',
    component: MoviePay
  },
    //zjlzjlzjl--------------------
  {
    path: '/bath',
    name: 'bath',
    component: Bath,
    meta: {
      BathShow: true  // 需要显示 底部导航
    }
  },
  {
    path: '/bathDetail',
    name: 'bathDetail',
    component: BathDetail,
    meta: {
      TabbarShow: false  // 不用显示 底部导航
    }
  },
  {
    path: '/attention',
    name: 'attention',
    component: Attention,
    meta: {
      TabbarShow: false  // 不用显示 底部导航
    }
  },
  {
    path: '/collection',
    name: 'collection',
    component: Collection,
    meta: {
      TabbarShow: false  // 不用显示 底部导航
    }
  },
  {
    path: '/comment',
    name: 'comment',
    component: CommentWrite,
    meta: {
      TabbarShow: false  // 不用显示 底部导航
    }
  },
  {
    path: '/fire',
    name: 'fire',
    component: FireStore,
    meta: {
      TabbarShow: false  // 不用显示 底部导航
    }
  },
  {
    path: '/chatZ',
    name: 'chatZ',
    component: ChatZ,
    meta: {
      TabbarShow: false  // 不用显示 底部导航
    }
  },
  {
    path: '/payz',
    name: 'payz',
    component: Payz,
    meta: {
      TabbarShow: false  // 不用显示 底部导航
    }
  },
  {
    path: '/storemap',
    name: 'storemap',
    component: StoreMap,
    meta: {
      TabbarShow: false  // 不用显示 底部导航
    }
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
